home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bisonpcb.zip / SYMTAB.H < prev    next >
C/C++ Source or Header  |  1987-02-03  |  2KB  |  51 lines

  1. /* Definitions for symtab.c and callers, part of bison,
  2.    Copyright (C) 1984 Bob Corbett and Free Software Foundation, Inc.
  3.  
  4. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  5. WARRANTY.  No author or distributor accepts responsibility to anyone
  6. for the consequences of using it or for whether it serves any
  7. particular purpose or works at all, unless he says so in writing.
  8. Refer to the BISON General Public License for full details.
  9.  
  10. Everyone is granted permission to copy, modify and redistribute BISON,
  11. but only under the conditions described in the BISON General Public
  12. License.  A copy of this license is supposed to have been given to you
  13. along with BISON so you can know your rights and responsibilities.  It
  14. should be in a file named COPYING.  Among other things, the copyright
  15. notice and this notice must be preserved on all copies.
  16.  
  17.  In other words, you are welcome to use, share and improve this program.
  18.  You are forbidden to forbid anyone else to use, share and improve
  19.  what you give them.   Help stamp out software-hoarding!  */
  20.  
  21. #define    TABSIZE    1009
  22.  
  23.  
  24. /*  symbol classes  */
  25.  
  26. #define SUNKNOWN 0
  27. #define STOKEN     1
  28. #define SNTERM     2
  29.  
  30.  
  31. typedef
  32.   struct bucket
  33.     {
  34.       struct bucket *link;
  35.       struct bucket *next;
  36.       char *tag;
  37.       char *type_name;
  38.       short value;
  39.       short prec;
  40.       short assoc;
  41.       short user_token_number;
  42.       char class;
  43.     }
  44.   bucket;
  45.  
  46.  
  47. extern bucket **symtab;
  48. extern bucket *firstsymbol;
  49.  
  50. extern bucket *getsym();
  51.